// compile: g++ -o deque deque.cc -std=c++11
// run: ./deque
#include <deque>
#include <iostream>
using namespace std;

void Print(deque<int>& dq) {
  for (const auto& t : dq) {
    cout << t << " ";
  }
  cout << endl;
}
void Test1() {
  deque<int> dq;
  dq.push_front(1);
  dq.push_back(2);
  dq.push_front(3);
  dq.pop_front();
  dq.pop_back();
  Print(dq);
}
void Test2() {}
int main() {
  Test1();
  Test2();
  return 0;
}
